<?php
header('content-type:text/html; charset=utf-8');
session_start();
@$id=$_REQUEST['id'];
@$lei=$_REQUEST['lei'];

$pdo=new PDO('mysql:dbname=can;charset=utf8','root');

$s=$pdo->prepare('update lei set lei=:lei where id=:id');
if($s->execute(array('lei'=>$lei,'id'=>$id))){
	header('content-type:text/html; charset=utf-8');
	header('Refresh:0;url=/cplie.php');
}
?>